Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Sametime Forum

HCL Sametime Forum


  

PreviousPrevious NextNext


~Mary Prekroterynds 5.Dec.11 01:09 PM a Web browser
Sametime Connect Client 3.0 All Platforms


Hi

We are developing an application named BOT in Java using the IBM sametime tooklit Java API wherein we are trying to capture the status of an user in sametime using watchList

The steps followed to add a user to the watchList were as follows:

1. Awareness service is used
AwarenessService awarenessService = (AwarenessService) stsession.getCompApi(AwarenessService.COMP_NAME);

2. Creation of WatchList
WatchList watchList = awarenessService.createWatchList();

3. Adding statusListener to watchlist
watchList.addStatusListener(this);

Now when I am resolving a particular user I am able to get the status of available,away,meeting and busy(dnd) mode in the "userStausChanged(StatusEvent se)" but not for "OFFLINE" .The status event is not triggering for an offline user after resolving and adding to the watchList

and also the following piece of code is giving me the NullPointerException while trying to fetch the status description for whatever may be the status of user

public void resolved(ResolveEvent re) {
if (re.getResolved() instanceof STUser) {
STUser user = ((STUser) re.getResolved());
String userName = user.getName();
// add to the watch list
watchList.addItem(user);
awarenessService.findUserStatus(user).getStatusDescription()

Can someone please help me how to know the status of an OFFLINE user if the status event is not triggering.


Thanks
Rajyalakshmi Srikantha,
Java Developer,
Css Corp Pvt Ltd.






Lotus Sametime (~Mary Prekroter... 5.Dec.11)
. . RE: Lotus Sametime (~Fritz Ekfoober... 5.Dec.11)
. . . . RE: Lotus Sametime (~Mary Prekroter... 6.Dec.11)
. . . . . . RE: Lotus Sametime (~Fritz Ekfoober... 6.Dec.11)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS